package dictionary.script;

public class Type2 extends Word implements DictionaryInterface{
	
	public Type2(String nucleus, String ending) {
		this.initial = "";
		this.medial = "";
		this.nucleus = nucleus;
		this.ending = ending;
		this.word = this.nucleus + this.ending;
	}
	public static boolean check(String nucleus, String ending){
		int pos = 0;
		for(int i=0;i<NUCLEUS.length;i++)
			if(nucleus.equals(NUCLEUS[i])){
				pos = i;
				break;
			}
		for(int i=0;i<NUCLEUS_ENDING[pos].length;i++)
			if(ending.equals(NUCLEUS_ENDING[pos][i]))
				return true;
		return false;
	}
	
}
